package com.newland.esp.service.user;

import com.newland.esp.entity.user.AdminEntity;
import com.newland.esp.entity.user.AdminInfoEntity;

public interface SSOService {

    /**
     * 登录认证方法返回票据 ticket
     * @param adminEntity
     * @return ticket
     */
     String login(AdminInfoEntity adminEntity);

    /**
     * 验证票据 ticket 返回用户信息
     * @param ticket
     * @return AdminEntity
     */
    AdminInfoEntity validate(String ticket);

    /**
     * 用户退出
     * @param ticket
     */
    Boolean logout(String ticket);
}

